<?php	
if(!isset($_SESSION)) session_start();

	/* import */
include_once('../DAO/AlunoDao.php');
	/* */
class AlunoPresenter{
		// construtor
         public function __construct(){
         }
         

        public function __cadastroSimples($pnomeAluno, $pmatriculaAluno){

        $retorno = FALSE;
        
        $alunoDAO = new AlunoDAO();
        $alunoDAO->__initialize();
              try{
                    $alunoDAO->__cadastroAlunoSimples($pnomeAluno, $pmatriculaAluno);	
                    $retorno = TRUE;
              }catch(Exception $e){
              }
             $alunoDAO->__finalize();
              
              return $retorno;	
        }
        public function __logout(){
                if(!isset($_SESSION)) session_start();	
                session_destroy();		
           }
           
           public function  __redi(){
  
                        header("Location: ..\EstruturaPagina\cadastroALuno.php");
         
         }
}	
?>